// import request from '@/utils/request'
import { getToken } from '@/utils/auth'
// 获取路由
export const getRouters = async () => {
  /*
  return request({
    url: '/getRouters',
    method: 'get'
  })
  */
  const token = getToken();  
  return await fetch('https://vue.ruoyi.vip/prod-api/getRouters',{
    headers: new Headers({
      'Host': 'vue.ruoyi.vip',
      "authorization": "Bearer " + token
    })
  }).then(res => res.json())
}